package practiceTest.chap04.work4;

/**
 * Created by root on 2017/7/14.
 */
public class PriorityQApp {
    public static void main(String[] args){
        PriorityQ priorityQ = new PriorityQ(5);
        priorityQ.insert(1);
        priorityQ.insert(2);
        priorityQ.insert(3);
        priorityQ.insert(4);
        priorityQ.insert(5);

        while (!priorityQ.isEmpty()) {
            System.out.print(priorityQ.remove() + " ");
        }
        System.out.println();
    }
}
